﻿@using Yyyg.Models;
@using Yyyg.BLL;
@{
    Layout = "~/Views/Shared/_LayoutHome.cshtml";
}
@model Yyyg.WebUI.Models.GoodInfoBaseVM
@section head{
    <link href="~/Content/home-layoutAbout.css" rel="stylesheet" />
    <script src="~/Scripts/src/goodAbout.js?@Tools.GetRandMax()"></script>
    @RenderSection("head")
}
<div class="ifpanel">
    <div class="path-navs">
        <a href="/">首页</a>
        <a href="/">全部商品</a>
        <a href="/home/fortype?t=@Model.GoodType.ParentType.TypeID">@(Model.GoodType.ParentType.TypeName)</a>
        <a href="/home/fortype?t=@Model.GoodType.TypeID">@(Model.GoodType.TypeName)</a>
        <a href="#">@(Model.Info.Title)</a>
    </div>
    <div class="about">
        <div class="ims">
            <div class="bbx">
                <img id="bigimg" data-main="@Model.MainUrl" src="@Model.MainUrl" />
            </div>
            <div class="subs iconfont">
                @for (int i = 0; i < Model.SubUrls.Length; i++)
                {<img src="@Model.SubUrls[i]" />}
            </div>
            <div class="icos">
                <i class="iconfont icon-gongping">公正公开</i>
                <i class="iconfont icon-zhengpin1">正品保证</i>
                <i class="iconfont icon-falv">权益保障</i>
                <i class="iconfont icon-baoyou">免费配送</i>
            </div>
        </div>
        <div class="dts">
            @RenderBody()
        </div>
    </div>
</div>
<div class="tppanel">
    <div class="layui-tab layui-tab-card">
        <ul class="layui-tab-title">
            <li class="layui-this">@RenderSection("tab1_title")</li>
            <li>云购记录</li>
            <li>晒单分享</li>
            <li>往期云购</li>
        </ul>
        <div class="layui-tab-content">
            <div class="layui-tab-item layui-show">
                @RenderSection("tab1_content")
            </div>
            <div class="layui-tab-item tab2">
                @if (Model.ByTimeLine.Count > 0)
                {
                    <div>
                        <div class="clkbox">
                            <i class="iconfont icon-shizhong topicon"></i>
                        </div>
                        <ul class="layui-timeline">
                            @foreach (var item in Model.ByTimeLine)
                            {
                                <li class="layui-timeline-item">
                                    <i class="layui-icon layui-timeline-axis">&#xe63f;</i>
                                    <div class="layui-timeline-content layui-text">
                                        <h3 class="layui-timeline-title">@item.Time</h3>
                                        <div>
                                            @foreach (var or in item.Orders)
                                            {
                                                <p>
                                                    @(or.Createtime.ToString("HH:mm:ss:fff"))&nbsp;&nbsp;&nbsp;
                                                    <img class="tlhead" src="@Server.MapUserHead(or.Member.Uid)" />
                                                    <a href="#" class="username">@or.Member.Petname</a>参与了<b>@(or.Bycount)</b>人次
                                                </p>
                                            }
                                        </div>
                                    </div>
                                </li>
                            }
                        </ul>
                    </div>
                }
                else
                {
                    <div class="nohave" text="暂时还没有云购记录"></div>
                }
            </div>
            <div class="layui-tab-item">
                <div class="nohave" text="暂时还没有晒单记录"></div>
            </div>
            <div class="layui-tab-item">
                @if (Model.Earliers.Count > 0)
                {
                    <ul class="earl">
                        @for (int i = 0; i < Model.Earliers.Count; i++)
                        {
                            var itm = Model.Earliers[i];
                            <li>
                                <div class="tit">第@(itm.Rushby_all.Per_num)期<span>(于@(itm.Createtime.ToBeijingString()) 揭晓)</span></div>
                                <div class="content">
                                    <div class="info">
                                        <div class="imgbx">
                                            <a href="#"><img class="headimg" src=" @(Server.MapUserHead(itm.Uid))" /></a>
                                        </div>
                                        <div class="winif blkfont">
                                            <p>获得者:<a href="#" class="username">@itm.Member.Petname</a></p>
                                            <p>共参与:<b style="color:red">@(itm.Bycount)人次</b></p>
                                        </div>
                                    </div>
                                    <div class="btnbx">
                                        <a class="layui-btn layui-btn-sm layui-btn-warm" href="/home/PrizeAbout?rhid=@itm.Rush_id">前往Look>></a>
                                    </div>
                                </div>
                            </li>
                        }
                    </ul>
                }
                else
                {
                    <div class="nohave" text="暂时还没有往期记录"></div>
                }
            </div>
        </div>
    </div>
</div>
<script>
    layui.use('element', function () {
        var element = layui.element;
    });
</script>
